﻿@theme: "../refs/";

@import "@{theme}variables.less";
@import "@{theme}mixins.less";


/*mini shopping cart*/
.flyout-cart {
    width: 380px;
}

.mini-shopping-cart {
    padding: 2px 5px;

    .count {
        color: @text-color;
        padding: @padding-base-vertical @padding-base-horizontal;
    }
    /*items*/
    .items {
        clear: both;
        overflow-y: auto;
        overflow-x: hidden;
        height: 315px;
        /*product item*/
        .p-item {
            clear: both;
            overflow: hidden;
            padding: 5px 0 10px;
            border-bottom: 1px dotted #ccc;
        }
        /*picture*/
        .picture {
            float: left;
            width: 80px;

            a {
                border: 1px solid #ccc;
                display: block;
                height: 90px;
                width: 74px;
                line-height: 1.5em;
                padding: 2px;
                color: #000;
            }

            img {
                //max size  80px.
                width: 67px;
                height: 80px;
                border: 0;
            }
        }
        /*product*/
        .product {
            float: left;
            width: 250px;
            padding-left: 10px;

            div {
                line-height: 1.5em;
            }

            .quantity {
                padding-bottom: 5px;
                margin-right: 5px;
            }

            a {
                padding: 0;
                margin: 0;
                display: inline;
            }

            .name a {
                line-height: 1.5em;
                height: 40px;
            }

            .attributes {
                overflow: hidden;
                clear: both;

                .item {
                    overflow: hidden;
                    clear: both;

                    .name, .value, .adj-price {
                        float: left;
                        margin-right: 5px;
                        height: 20px;
                        line-height: 20px;
                    }

                    .color-container {
                        position: relative;
                        display: block;
                        margin-top: 2px;

                        .color {
                            display: block;
                            background: none;
                            min-width: 10px;
                            text-align: center;
                            text-decoration: none;
                            color: #666;
                            border: 2px solid #e0e0e0;
                            width: 20px;
                            height: 11px;
                            padding: 0;
                            text-indent: -9999px;
                        }
                    }
                }
            }
        }
    }
    /*totals*/
    .totals {
        padding: 5px 40px 5px 0;
        text-align: right;
        font-weight: bold;
        color: @brand-primary;
        border-top: 1px solid #ccc;
        font-size: 13px;
        margin-top: 5px;

        span {
            color: #2c2c2c;
        }
    }
    /*buttons*/
    .buttons {
        text-align: center;
        margin: 5px auto;

        .cart-button {
            width: 80%;
            margin: 0 auto;
        }
    }
}
